package com.zerox.springsecuritydemo329.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

    /**
     * 角色表
     * @TableName sys_role
     */
    @TableName(value ="sys_role")
    @Data
    public class SysRole implements Serializable {
        /**
         *
         */
        @TableId(type = IdType.AUTO)
        private Long id;

        /**
         *
         */
        private String name;

        /**
         * 角色权限字符串
         */
        private String roleKey;

        /**
         * 角色状态（0正常 1停用）
         */
        private String status;

        /**
         * del_flag
         */
        private Integer delFlag;

        /**
         *
         */
        private Long createBy;

        /**
         *
         */
        private Date createTime;

        /**
         *
         */
        private Long updateBy;

        /**
         *
         */
        private Date updateTime;

        /**
         * 备注
         */
        private String remark;

        @TableField(exist = false)
        private static final long serialVersionUID = 1L;
    }
